Edit sequence diagram

Overview

The Next Design sequence diagram allows you to add an existing model as a lifeline or select a message according to the model of the message destination when describing the interaction between objects. For example, you can add a component defined as a model as a lifeline. Then, when you add a message between components, you can select the destination port for the message from the ports provided by the destination component.

The following describes the sequence diagram editing operations in the following order.

  • Add sequence diagram model
  • Edit lifelines and messages
  • Add a model as a lifeline
  • Select message according to model
  • Add compound fragment

Add model of sequence diagram

To add a model of the sequence diagram, add it from the context menu of the model navigator like any other model.

Add model of sequence diagram

Info

  • The types of sequence diagrams that can be added (eg, inter-component sequence diagram) are specified by the profile.

Edit lifelines and messages

To add a lifeline and a message between lifelines to the sequence diagram:

Edit Lifeline and Message

Operating procedure

  1. From the [New] tab of the toolbox or the sub toolbox at the left end of the editor edit area, drag and drop [Lifeline] onto the editor to add a lifeline.
  2. Edit the name of the added lifeline.
  3. Move the pointer over the lifeline from which you want to send the message.
  4. Add the message by dragging the [▲] icon displayed on the left and right of the lifeline and dropping it on the lifeline to which you want to send the message.
  5. Edit the name of the added message.

Note

  • To add non-synchronous messages (asynchronous, response, generate, discard), select the message type in the sub toolbox and then add the message.

About moving messages

  • You can move to the next by dragging the message in the sequence diagram in combination with a key.
Element Operation Operation
Message Shift + Drag up/down You can move up/down with subsequent messages.
Message Alt + Drag up/down You can switch the order of the previous and next messages.

About vertical scrolling

  • For sequence diagrams that do not fit in the editing area of the editor, move the pointer inside the frame of the sequence diagram and use the wheel to fix the object name at the top of the lifeline and scroll only at the bottom of the lifeline.

Add a model as a lifeline

To add an existing model as a sequence diagram lifeline:

Screen capture_or_GIF animation

Operating procedure

  1. If the metamodel defines the types of models you can add to your lifeline, click the Reference tab in the toolbox to see the models you can add.
  2. Drag the model from the Reference tab of the toolbox and drop it on the editor to add it as a lifeline.
  3. Immediately after adding the lifeline label, only [Model Name] is displayed, and the lifeline name is empty. Enter individual names as needed.

Other operating procedures

You can assign a new model to an existing lifeline or change to another model by following the procedure below.

  1. Select the lifeline to be modified and execute [Change Lifeline Type] from the context menu.
  2. Select the model to be assigned to the lifeline and click the [OK] button. The [Model Name] defined in the metamodel is displayed on the lifeline label.

Caution

  • Changing the lifeline type (the model assigned to the lifeline) resets the type of message being sent to that lifeline.

Select message according to model

To add a message to your destination model when adding it, follow these steps:

Screen capture_or_GIF animation

Operating procedure

  1. If a message choice for the model (the target field to associate with the message) is defined in the metamodel, then when you try to add a message like in the "Edit Lifeline and Message" section above, that choice is displayed. I will.
  2. Select the message and click the [OK] button. The message is added and the [Title] defined in the metamodel is displayed on the label.

Note

  • When selecting a message, select [(No model)] to add a message that can be freely edited regardless of the model.

Other operating procedures

You can change the type of an existing message to suit your model as follows:

  1. Select the message to be modified and execute [Change Message Type] from the context menu.
  2. Select the type to be assigned to the message and click the [OK] button to change the message label to [Title] defined in the metamodel.

Add a compound fragment

Follow the steps below to add a compound fragment that represents branching processing to the sequence diagram.

Screen capture_or_GIF animation

Operating procedure

  1. From the [New] tab of the toolbox or the sub toolbox at the left end of the editor edit area, drag and drop [Fragment] onto the live line of the editor to add a compound fragment.
  2. Double-click the operator (default: alt) in the upper left of the composite fragment to edit it.
  3. Double-click the operand guard in the compound fragment to edit it.
  4. If you want to add an operand in the compound fragment, execute [Add Operand] from the context menu of the compound fragment.
  5. If you want to reorder the operands in the compound fragment, point to the guard of the operand and drag and drop.

Note

  • Compound fragments can only be added/moved to places with lifelines.